# Defaults for kexec initscript
# sourced by kexec-tools.config, /etc/init.d/kexec and /etc/init.d/kexec-load

# Load a kexec kernel (true/false)
LOAD_KEXEC=true

# Kernel and initrd image
# Unused: tails-reconfigure-kexec appends the correct values to this file
#         at boot time.
KERNEL_IMAGE=/vmlinux
INITRD=/initrd.img

rebooting() {
   systemctl list-jobs systemd-reboot.service | grep -qs systemd-reboot.service
}

if rebooting ; then
   APPEND="${APPEND} sdmem=reboot sdmemopts=vllf"
else
   APPEND="${APPEND} sdmem=halt sdmemopts=vllf"
fi
